﻿using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;

/// <summary>
/// 
/// </summary>
public class AFNSummary
{

    public AFN AFNValue { get; set; }

    /// <summary>
    /// AFN比较友好的名字
    /// </summary>
    public string AFNNAME { get; set; }

    /// <summary>
    /// AFN描述
    /// </summary>
    public string Summary { get; set; }

    /// <summary>
    /// AFN 十六进制
    /// </summary>
    public string AFNHEX { get; set; }
}



/// <summary>
/// 协议分类AFN
/// </summary>
public enum AFN : byte
{
    /// <summary>
    /// 应答
    /// </summary>
    RESPOND = 0x00,


    /// <summary>
    /// 身份认证
    /// </summary>
    AUTHERTICATION = 0x02,

    /// <summary>
    /// 参数设置
    /// </summary>
    PARAMETER_SETTINGS = 0x04,

    /// <summary>
    /// 控件命令
    /// </summary>
    CONTROL = 0x05,


    /// <summary>
    /// 透传
    /// </summary>
    PASSTHROUGH = 0x06,

    /// <summary>
    /// 历史数据不丢包上报
    /// </summary>
    HISTORY_UP=0x07,

    /// <summary>
    /// 历史数据不丢包回应
    /// </summary>
    HISTORY_RET=0x17,

    /// <summary>
    /// 查询参数
    /// </summary>
    PARAMETER_QUERY = 0x0A,

    /// <summary>
    /// 上报数据
    /// </summary>
    REPORTED_DATA = 0x0C,
    /// <summary>
    /// 不丢包实时数据上报项
    /// </summary>
    REPORTED_DATA_NEWAFN23 = 0x23,


    /// <summary>
    /// 状态查询
    /// </summary>
    STATUS_QUERY = 0x0D,


    /// <summary>
    /// 文件传输
    /// </summary>
    FILE_TRANSFER = 0x0F,


    /// <summary>
    /// 整车故障
    /// </summary>
    VEHICLE_FAULT = 0x20,

    

    /// <summary>
    /// 终端状态上报,用于终端主动上报终端当前状态
    /// </summary>
    Terminal_State_Report = 0x19,

    /// <summary>
    /// URL操作相关,包括下载,状态汇报,主动上传等
    /// </summary>
    URLFile_Operation = 0x43,
}
